import PropTypes from 'prop-types'
import React, { memo } from 'react'
import { ContainerHeaderWarpper } from './style'
const CustomContainerHeader = memo((props) => {
    const { height, type = "normal", defaultSlot = "默认标题", } = props
    return (
        <ContainerHeaderWarpper height={height} type={type}>
            <div className="top-content-warpper">
                <span className='left-container'>{defaultSlot}</span>
            </div>
        </ContainerHeaderWarpper>
    )
})

CustomContainerHeader.propTypes = {
    height: PropTypes.string,
    showRight: PropTypes.bool
}

CustomContainerHeader.defaultProps = {
    height: '36px'
}

export default CustomContainerHeader